package com.project.service;

import com.project.entity.PositionType;

import java.util.List;

/**
 * @Author: TateBrown
 * @date: 2018/5/26 14:52
 * @param:
 * @return:
 */
public interface PositionTypeService {
    PositionType findById(int id);
    int update(PositionType positionType);
    int addOne(PositionType positionType);
    int delete(int id);
    List<PositionType> findAll();

    /**
     * author: WheelChen
     * date: 2017/8/2
     * function: 根据学院id批量查找岗位
     *
     * @param schoolId 学院id
     * @return
     */
    List<PositionType> findBatchBySchoolId(Integer schoolId);

    /**
     * author: WheelChen
     * date: 2017/8/9
     * function: [条件]查找岗位类别
     *
     * @param positionType
     * @return
     */
    List<PositionType> findBatchByCondition(PositionType positionType);

    /**
     * author: WheelChen
     * date: 2017/10/16
     * function: 检查当前岗位是否已存在
     * @param typename 岗位名称
     * @param schoolid 学院id
     * @return
     */
    boolean checkTypenameIsExist(String typename, Integer schoolid);
}
